package com.sgzn.sgpay.service.converter;

import com.sgzn.sgpay.model.request.SgsBaseRequest;
import org.springframework.stereotype.Component;

/**
 * service 公共请求参数组装
 * @author huangsenguang
 * @version Id: AssembleSgsCommonHandle.java, v 0.1 2018/6/6 20:50 huangsenguang Exp $$
 */
@Component
public class AssembleSgsCommonHandle {
    /**
     * 组装公共请求参数 （servcie接口 调用 service接口时使用）
     * @param sourceRequest
     * @param targetRequest
     */
    public void assemble(SgsBaseRequest sourceRequest, SgsBaseRequest targetRequest) {
        targetRequest.setInitiationID(sourceRequest.getInitiationID());
        targetRequest.setLoginChannel(sourceRequest.getLoginChannel());
        targetRequest.setReqTime(sourceRequest.getReqTime());
    }
}

